package com.codebattery.mapper;

import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * 扩展插件的Mapper基类接口
 *
 */
public interface BaseMapper<T, I extends Serializable> {

    int insert(T record);

    int insertSelective(T record);

    int updateByPrimaryKey(T record);

    int updateByPrimaryKeySelective(T record);

    T selectByPrimaryKey(I id);

    int deleteByPrimaryKey(I id);

    int insertBatch(List<T> records);

    int deleteBatch(List<I> keys);
}